package top.codingfly.examples;

import top.codingfly.netty.common.NettyPacket;

public class ProtocolPacket extends NettyPacket {
    public int type;
    public byte[] dataBytes;
    public static int heartbeatType = 1;
    public ProtocolPacket() { }
    public ProtocolPacket(int type) {
        this.type = type;
    }
    public ProtocolPacket(int type, byte[] dataBytes) {
        this.type = type;
        this.dataBytes = dataBytes;
    }
    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public byte[] getDataBytes() {
        return dataBytes;
    }
    public void setDataBytes(byte[] dataBytes) {
        this.dataBytes = dataBytes;
    }
}
